package com.yima.baseproj.module.app.equipmentEquipment;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yima.baseproj.module.app.equipmentEquipment.model.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface EquipmentEquipmentMapper extends BaseMapper<EquipmentEquipmentEntity> {

    List<Map> findBySearchVo(@Param("searchVo") EquipmentEquipmentSearchModel searchVo);

    Page<Map> findBySearchVo(@Param("page") Page page,
                             @Param("searchVo") EquipmentEquipmentSearchModel searchVo);

    List<EquipmentEquipmentEntity> selectList(String userOpenid);

    int getOneList(String deviceNo);


    boolean delNO(String deviceNo);

    EquipmentEquipmentEntity getOneL(String deviceNo);
}
